/**
 * @author harry
 * @date 2022/2/11/21:03
 */

package com.serviceOrchestration.util;

public enum StatusCode {
    OK(200, "ok"),
    LOGGED_HERE(213, "logged on this device"),
    LOGGED_ANOTHER(250, "logged on another device"),
    NOT_MODIFIED(304, "not modified"),

    PARAM_ERROR(400, "param error"),
    PARAM_MISSING(4000, "param missing"),
    WRONG_PASSWORD(4001, "wrong password"),

    UNAUTHORIZED(401, "unauthorized"),
    INVALIDATE_TOKEN(4010, "invalidate token"),
    NOT_PERMITTED(4011, "not permitted"),

    NOT_FOUND(404, "not found"),
    NO_ACCOUNT(4040, "no such account"),

    NOT_ACCEPTABLE(406, "not acceptable"),

    SERVER_ERROR(500, "server error");

    public final int value;
    public final String information;

    StatusCode(int value, String information) {
        this.value = value;
        this.information = information;
    }
}
